package hnevc.com.liangxiangju;

import java.io.File;

/**
 *
 * File对于文件进行遍历
 *
 */
public class Example04 {
    public static void main(String[] args) {
   File file=new File("C:\\mysql-5.6.21");
   if (file.isDirectory()){
       File[] names =file.listFiles();
       for (File name:names){
           System.out.println(name);
       }
   }
    }
}
